﻿//using Volo.Abp.Authorization.Permissions;
//using Volo.Abp.Localization;
//using Volo.Abp.MultiTenancy;
//using TenantManagement.Localization;

//namespace TenantManagement;

//public class TenantManagementPermissionDefinitionProvider : PermissionDefinitionProvider
//{
//    public override void Define(IPermissionDefinitionContext context)
//    {
//        var tenantManagementGroup = context.AddGroup(TenantManagementPermissions.GroupName, L("Permission:TenantManagement"));

//        var tenantsPermission = tenantManagementGroup.AddPermission(TenantManagementPermissions.Tenants.GroupName, L("Permission:TenantManagement"), multiTenancySide: MultiTenancySides.Host);
//        tenantsPermission.AddChild(TenantManagementPermissions.Tenants.Create, L("Permission:Create"), multiTenancySide: MultiTenancySides.Host);
//        tenantsPermission.AddChild(TenantManagementPermissions.Tenants.Update, L("Permission:Edit"), multiTenancySide: MultiTenancySides.Host);
//        tenantsPermission.AddChild(TenantManagementPermissions.Tenants.Delete, L("Permission:Delete"), multiTenancySide: MultiTenancySides.Host);
//        tenantsPermission.AddChild(TenantManagementPermissions.Tenants.ManageFeatures, L("Permission:ManageFeatures"), multiTenancySide: MultiTenancySides.Host);
//        tenantsPermission.AddChild(TenantManagementPermissions.Tenants.ConnStrings.GroupName, L("Permission:ManageConnectionStrings"), multiTenancySide: MultiTenancySides.Host);
//    }

//    private static LocalizableString L(string name)
//    {
//        return LocalizableString.Create<TenantManagementResource>(name);
//    }
//}
